﻿using ProTrack.Entity;
using System;
using System.Collections.Generic;
using System.Text;
using System.Threading.Tasks;

namespace ProTrack.IServices.Examine
{
    public interface IQcProjectLevelServices
    {

        /// <summary>
        /// 查询所有数据
        /// </summary>
        /// <returns></returns>
        public Task<IEnumerable<QcProjectLevel>> GetAllAsync();

        /// <summary>
        /// 获取分页   根据条件查询数据
        /// </summary>
        /// <param name="PageIndex"></param>
        /// <param name="PageSize"></param>
        /// <param name="Remark"></param>
        /// <param name="LevelName"></param>
        /// <param name="Classify"></param>
        /// <returns></returns>
        public Task<IEnumerable<QcProjectLevel>> GetAsync(int PageIndex, int PageSize, string Remark, string LevelName,string Classify);


        /// <summary>
        /// 获取总条数
        /// </summary>
        /// <param name="Remark"></param>
        /// <param name="LevelName"></param>
        /// <param name="Classify"></param>
        /// <returns></returns>
        public Task<int> GetCountAsync(string Remark, string LevelName, string Classify);

        /// <summary>
        /// 修改
        /// </summary>
        /// <param name="model"></param>
        /// <returns></returns>
        public Task<bool> UpdateAsync(QcProjectLevel model);

        /// <summary>
        /// 新增
        /// </summary>
        /// <param name="model"></param>
        /// <returns></returns>
        public Task<bool> AddAsync(QcProjectLevel model);

        /// <summary>
        /// 批量删除
        /// </summary>
        /// <param name="Ids"></param>
        /// <returns></returns>
        public Task<bool> DeleteAsync(int[] Ids);


        /// <summary>
        /// 删除单条
        /// </summary>
        /// <param name="Id"></param>
        /// <returns></returns>
        public Task<bool> DeleteAsync(int Id);
    }

}
